FortiOS 5.4 Online Help Link FortiOS 5.2 Online Help Link FortiOS 5.0 Online Help Link FortiOS 4.3 Online Help Link

Home > Online Help

> Chapter 9 - Firewall > Building firewall objects and policies > Example: ICMP Service

Example: ICMP service

The Security Officer would like to block the use of the traceroute utility through the network. The IT manager insists that ping and other ICMP utility must be allows for the task of diagnosing connectivity, so it is agreed that only traceroute functionality will be blocked.

The ICMP type for traceroute is 30. There is no codes with the type.

Web-based Manager Instructions
  1. Go to Policy & Objects > Objects > Services and select Create New > Service.
  2. Fill out the fields with the following information
Name traceroute
Comments <Input into this field is optional>
Service Type Firewall
Show in Service List Check in check box
Category Uncategorized
Protocol Type ICMP
Type 30
Code <Leave blank>
  1. Select OK.
  2. Enter the following CLI command:

config firewall service custom

edit traceroute

set protocol ICMP

set icmptype 30

set visibility enable

end

To verify that the category was added correctly:
  1. Go to Policy & Objects > Objects > Services. Check that the services have been added to the services list and that they are correct.
  2. Enter the following CLI command:

config firewall service custom

edit <the name of the service that you wish to verify>

show full-configuration